﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Hosting;

namespace Extend.Framework
{
    public class AreaVirtualFile : VirtualFile
    {
        private readonly Stream stream;

        public AreaVirtualFile(string virtualPath, Stream stream)
            : base(virtualPath)
        {
            this.stream = stream;
        }

        public override bool IsDirectory
        {
            get
            {
                return false;
            }
        }

        public override Stream Open()
        {
            return stream;
        }
    }
}
